<?php

namespace App\Http;

Class Route
{
    public static function label() : array
    {
        return [
            '设置' => [
                '用户列表' => [
                    'uri' => 'setting/user',
                    'action' => 'Setting\UserController@index',
                    'ajax' => [
                        [
                            'label' => '编辑用户',
                            'uri' => 'setting/user/edit',
                            'method' => 'post',
                            'action' => 'Setting\UserController@edit',
                        ]
                    ]
                ],
                '角色列表' => [
                    'uri' => 'setting/role',
                    'action' => 'Setting\RoleController@index',
                    'ajax' => [
                        [
                            'label' => '编辑角色',
                            'uri' => 'setting/role/edit',
                            'method' => 'post',
                            'action' => 'Setting\RoleController@edit',
                        ], [
                            'label' => '角色权限',
                            'uri' => 'acl/{id}',
                            'method' => 'get',
                            'action' => 'Setting\AclController@get',
                        ], [
                            'label' => '修改权限',
                            'uri' => 'acl',
                            'method' => 'post',
                            'action' => 'Setting\AclController@auth',
                        ]
                    ]
                ],
                '渠道列表' => [
                    'uri' => 'platform',
                    'action' => 'Setting\PlatformController@index',
                    'ajax' => [
                        [
                            'label' => '编辑渠道',
                            'uri' => 'platform/edit',
                            'method' => 'post',
                            'action' => 'Setting\PlatformController@edit',
                        ], [
                            'label' => '用户渠道',
                            'uri' => 'platform/{id}',
                            'method' => 'get',
                            'action' => 'Setting\PlatformController@get',
                        ], [
                            'label' => '修改用户渠道',
                            'uri' => 'platform/user',
                            'method' => 'post',
                            'action' => 'Setting\PlatformController@user',
                        ]
                    ]
                ],
            ],
            '操作记录' => [
            ],
            '玩家管理' => [
                '玩家列表' => [
                    'uri' => 'user',
                    'action' => 'User\UserController@index',
                    'ajax' => [
                        [
                            'label' => '编辑',
                            'uri' => 'user/edit',
                            'method' => 'post',
                            'action' => 'User\UserController@edit',
                        ], [
                            'label' => '清除密码',
                            'uri' => 'user/passwd/clear',
                            'method' => 'post',
                            'action' => 'User\UserController@clearPasswd',
                        ], [
                            'label' => '提升为伙伴',
                            'uri' => 'user/up',
                            'method' => 'post',
                            'action' => 'User\UserController@upZongdai',
                        ], [
                            'label' => '后台更改用户金额',
                            'uri' => 'user/addMoney',
                            'method' => 'post',
                            'action' => 'User\UserController@addMoney',
                        ]
                    ]
                ],
                '交易记录' => [
                    'uri' => 'user/record',
                    'action' => 'User\RecordController@index',
                    'ajax' => []
                ],
                '提货申请' => [
                    'uri' => 'user/tihuo',
                    'action' => 'User\TihuoController@index',
                    'ajax' => [
                        [
                            'label' => '编辑',
                            'uri' => 'user/tihuo/edit',
                            'method' => 'post',
                            'action' => 'User\TihuoController@edit',
                        ]
                    ]
                ],
            ],
            '数据统计' => [
                '新增注册' => [
                    'uri' => 'user/reg',
                    'action' => 'User\UserController@reg',
                    'ajax' => []
                ],
            ],
            '支付中心' => [
                '支付方式' => [
                    'uri' => 'payway',
                    'action' => 'Order\PayWayController@index',
                    'ajax' => [
                        [
                            'label' => '编辑支付方式',
                            'uri' => 'payway/edit',
                            'method' => 'post',
                            'action' => 'Order\PayWayController@edit',
                        ]
                    ]
                ],
                '充值记录' => [
                    'uri' => 'order/wx',
                    'action' => 'Order\WxOrderController@index',
                    'ajax' => [
                        [
                            'label'  => '查询订单',
                            'uri'    => 'order/wx/check',
                            'method' => 'post',
                            'action' => 'Order\WxOrderController@check',
                        ]
                    ]
                ],
                '充值统计' => [
                    'uri' => 'order/wx/group',
                    'action' => 'Order\WxOrderController@group',
                    'ajax' => []
                ],
            ],
            '抢购' => [
                '商品列表' => [
                    'uri' => 'product',
                    'action' => 'Order\ProductController@index',
                    'ajax' => [
                        [
                            'label' => '编辑商品',
                            'uri' => 'product/edit',
                            'method' => 'post',
                            'action' => 'Order\ProductController@edit',
                        ],
                        [
                            'label' => '图片上传',
                            'uri' => 'product/upload',
                            'method' => 'post',
                            'action' => 'Order\ProductController@upload',
                        ]
                    ]
                ],
                '抢购订单' => [
                    'uri' => 'order/order',
                    'action' => 'Order\OrderController@index',
                    'ajax' => []
                ],
                '每期开奖统计' => [
                    'uri' => 'lottery',
                    'action' => 'Lottery\LotteryController@index',
                    'ajax' => []
                ],
                '每日开奖统计' => [
                    'uri' => 'lottery/day',
                    'action' => 'Lottery\LotteryController@day',
                    'ajax' => []
                ],
                '实时投注' => [
                    'uri' => 'lottery/touzhu',
                    'action' => 'Lottery\LotteryController@touzhu',
                    'ajax' => []
                    
                ],
                '红包' => [
                    'uri' => 'redpackets',
                    'action' => 'Order\RedPacketController@index',
                    'ajax' => [
                        [
                            'label' => '新增红包',
                            'uri' => 'redpackets/edit',
                            'method' => 'post',
                            'action' => 'Order\RedPacketController@edit',
                        ],
                        [
                            'label' => '发放红包',
                            'uri' => 'redpackets/openpacket',
                            'method' => 'post',
                            'action' => 'Order\RedPacketController@openPacket',
                        ],
                        [
                            'label' => '关闭红包',
                            'uri' => 'redpackets/closepacket',
                            'method' => 'post',
                            'action' => 'Order\RedPacketController@closePacket',
                        ],
                    ]
                    
                ],
                
            ],
            '推广代理' => [
                '合伙人列表' => [
                    'uri' => 'agent/chao',
                    'action' => 'Agent\ChaoZongdaiController@index',
                    'ajax' => [
                        [
                            'label' => '编辑合伙人',
                            'uri' => 'agent/chao/edit',
                            'method' => 'post',
                            'action' => 'Agent\ChaoZongdaiController@edit',
                        ], [
                            'label' => '重置合伙人密码',
                            'uri' => 'agent/chao/resetpwd',
                            'method' => 'post',
                            'action' => 'Agent\ChaoZongdaiController@resetpwd',
                        ], [
                            'label' => '收益明细',
                            'uri' => 'agent/chao/detail',
                            'action' => 'Agent\ChaoZongdaiController@detail',
                            'method' => 'get',
                        ], [
                            'label' => '提款',
                            'uri' => 'chao/tikuan',
                            'method' => 'post',
                            'action' => 'Agent\ChaoZongdaiController@tikuan',
                        ], [
                            'label' => '转账',
                            'uri' => 'chao/money/add',
                            'method' => 'post',
                            'action' => 'Agent\ChaoZongdaiController@addMoney',
                        ],[
                            'label' => '保险箱转账',
                            'uri' => 'chao/money/add2',
                            'method' => 'post',
                            'action' => 'Agent\ChaoZongdaiController@addMoney2',
                        ],
                    ]
                ],
                '合伙人开奖详情' => [
                    'uri' => 'chao/record',
                    'action' => 'Agent\ChaoZongdaiController@record',
                    'ajax' => [
                    ]
                ],
                '合伙人提款申请' => [
                    'uri' => 'tikuan/chao/log',
                    'action' => 'Agent\ChaoZongdaiController@tikuanLog',
                    'ajax' => []
                ],
                '伙伴列表' => [
                    'uri' => 'agent/zongdai',
                    'action' => 'Agent\ZongdaiController@index',
                    'ajax' => [
                        [
                            'label' => '收益明细',
                            'uri' => 'agent/zongdai/detail',
                            'action' => 'Agent\ZongdaiController@detail',
                            'method' => 'get',
                        ], [
                            'label' => '编辑伙伴',
                            'uri' => 'agent/zongdai/edit',
                            'method' => 'post',
                            'action' => 'Agent\ZongdaiController@edit',
                        ], [
                            'label' => '合伙人向伙伴转账',
                            'uri' => 'agent/zongdai/transfer',
                            'method' => 'post',
                            'action' => 'Agent\ZongdaiController@transfer',
                        ]
                    ]
                ],
                '伙伴开奖详情' => [
                    'uri' => 'zongdai/record',
                    'action' => 'Agent\ZongdaiController@record',
                    'ajax' => [
                    ]
                ],
                '用户提款申请' => [
                    'uri' => 'tikuan/log',
                    'action' => 'User\UserController@tikuanLog',
                    'ajax' => [
                        [
                            'label' => '提款审核',
                            'uri' => 'tikuan/edit',
                            'method' => 'post',
                            'action' => 'User\UserController@tikuanEdit',
                        ]
                    ]
                ],
                '伙伴提款申请' => [
                    'uri' => 'agent/zongdai/huobtk',
                    'action' => 'Agent\ZongdaiController@huobtk',
                    'ajax' => [
                        [
                            'label' => '提款审核',
                            'uri' => 'agent/zongdai/huobsh',
                            'method' => 'post',
                            'action' => 'Agent\ZongdaiController@huobsh',
                        ],
                        [
                            'label' => '密码重置',
                            'uri' => 'agent/zongdai/huobmm',
                            'method' => 'post',
                            'action' => 'Agent\ZongdaiController@huobmm',
                        ]
                    ]
                ],
                '转账记录' => [
                    'uri' => 'agent/zongdai/translog',
                    'action' => 'Agent\ZongdaiController@translog',
                    'ajax' => [
                    ]
                ],
//                '充值统计' => [
//                    'uri' => 'agent/order/group',
//                    'action' => 'Agent\OrderController@group',
//                    'ajax' => [
//
//                    ]
//                ],
            ],
            '文件' => [
                '分享背景图' => [
                    'uri' => 'files/uploadImg',
                    'action' => 'Files\ImgController@index',
                    'ajax' => [
                        [   
                            'label' => '图片上传',
                            'uri' => 'files/uploadImg/upload',
                            'method' => 'post',
                            'action' => 'Files\ImgController@upload',
                        ]
                    ]
                ],
            ],
        ];
    }
}